#include "ToolButtonIconTextArrowEntirety.hpp"
using namespace ribbonStyleControls::Controls;
ToolButtonIconTextArrowEntirety::ToolButtonIconTextArrowEntirety(QString name, QString iconPath, QWidget* parent)
	:ToolButtonIconTextArrow(name,iconPath,parent){}



QColor ToolButtonIconTextArrowEntirety::upHover()
{
	if (isPressed) {
		return QColor(221, 226, 230);
	}
	return QColor(232, 235, 239);
}

QColor ToolButtonIconTextArrowEntirety::downHover()
{
	if (isPressed) {
		return QColor(221, 226, 230);
	}
	return QColor(232, 235, 239);
}

QRect ToolButtonIconTextArrowEntirety::fillClickRect()
{
	return rect();
}

void ToolButtonIconTextArrowEntirety::mouseReleaseEvent(QMouseEvent* event)
{
	isPressed = false;
	ToolButtonBase::mouseReleaseEvent(event);
}

void ToolButtonIconTextArrowEntirety::mousePressEvent(QMouseEvent* event)
{
	isPressed = true;
	ToolButtonBase::mousePressEvent(event);
}
